//package com.youlai.quarkus.system.common.exception;
//
//import io.quarkus.security.UnauthorizedException;
//import jakarta.annotation.Priority;
//import jakarta.ws.rs.Priorities;
//import jakarta.ws.rs.core.Response;
//import jakarta.ws.rs.ext.ExceptionMapper;
//
///**
// * 您可以使用Jakarta REST ExceptionMapper捕获Quarkus Security身份验证异常
// */
////@Provider
//@Priority(Priorities.USER + 1)
////@Provider
//public class UnauthorizedExceptionMapper implements ExceptionMapper<UnauthorizedException> {
//
//    @Override
//    public Response toResponse(UnauthorizedException exception) {
//        return Response.status(401).entity("失败了").build();
//    }
//
//}
